package com.drawingtimer.admin.service;

import com.drawingtimer.admin.model.entity.TTimeSegmentPause;
import com.drawingtimer.admin.model.vo.TTimeSegmentPausePageVO;
import com.drawingtimer.admin.model.qo.TTimeSegmentPauseQO;
import com.hccake.ballcat.common.model.domain.PageParam;
import com.hccake.ballcat.common.model.domain.PageResult;
import com.hccake.extend.mybatis.plus.service.ExtendService;

/**
 * 时间段暂停记录
 *
 * @author ballcat 2025-04-30 14:13:33
 */
public interface TTimeSegmentPauseService extends ExtendService<TTimeSegmentPause> {

	/**
	 * 根据QueryObeject查询分页数据
	 * @param pageParam 分页参数
	 * @param qo 查询参数对象
	 * @return PageResult&lt;TTimeSegmentPausePageVO&gt; 分页数据
	 */
	PageResult<TTimeSegmentPausePageVO> queryPage(PageParam pageParam, TTimeSegmentPauseQO qo);

	boolean getByRecordIdAndEndTimeIsNull(Long recordId);

	boolean saveAndUpdateTTimeSegmentRecord(TTimeSegmentPause tTimeSegmentPause);

	boolean updateResumeTimer(TTimeSegmentPause tTimeSegmentPause);

}